html,
body {
    height: 100%;
}

body {
    background: #fff;
    background-image: linear-gradient(45deg, #e5e5e5 25%, transparent 0, transparent 75%, #e5e5e5 0), linear-gradient(45deg, #e5e5e5 25%, transparent 0, transparent 75%, #e5e5e5 0);
    background-position: 0 0, 50px 50px;
    background-size: 100px 100px;
}

/* 头部区域 */
.header {
    height: 80px;
    line-height: 80px;
    text-align: center;
    /* display: none; */
}

.header .title {
    font-size: 26px;
    text-align: center;
}

@media screen and (max-width: 769px) {
    .header {
        display: none;
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

/* 简谱区域 */
.main {
    position: relative;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    overflow: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.main::-webkit-scrollbar {
    display: none;
}

.main .notes {
    width: 80%;
    height: 100%;
    margin: 0 auto;
    padding-top: 30px;
    padding-left: 10px;
    padding-right: 10px;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    align-items: flex-start;
    box-sizing: border-box;

}

@media screen and (max-width: 769px) {
    .main .notes {
        width: 100%;
        margin: 0 auto;
    }
}

.main .notes .col {
    position: relative;
    margin: 0 5px;
    float: left;
    width: 15px;
    text-align: center;
    cursor: pointer;
}

.main .notes .note-empty {
    float: left;
    font-weight: bolder;
    font-size: 12px;
    line-height: 1.3;
    margin: 0 5px;
}

.main .notes .col.edit {
    border: 2px dashed #ccc;
    padding: 5px;
}

.main .notes .col.edit {
    padding: 5px 8px;
    border: 2px dashed orange;
}

.main .notes .col.liaison-left::before {
    position: absolute;
    content: '\2D70';
    top: -25px;
    left: 12px;
    transform: rotateZ(90deg) rotateY(180deg);
}

.main .notes .col.triplet::before {
    position: absolute;
    content: '3';
    top: -25px;
    left: 4px;
    font-size: 0.5rem;
    font-style: oblique;
}

.main .notes .col.liaison-right::before {
    position: absolute;
    content: '\2D70';
    top: -25px;
    left: -6px;
    transform: rotateZ(270deg);
}

.main .notes .col .note {
    position: relative;
    margin-bottom: 8px;
    height: 28px;
    box-sizing: border-box;
}

.main .notes .col .note.pitch-high::before {
    position: absolute;
    content: '·';
    font-size: 1.5rem;
    left: 0;
    top: -7px;
    width: 100%;
    line-height: 5px;
}

.main .notes .col .note .pitch-low {
    font-size: 1.5rem;
    line-height: 5px;
    /* height: 1px; */
}

.main .notes .col .note .beat-8 {
    border-top: 1px solid #333333;
    margin-top: 1px;
    margin-left: 3px;
    margin-right: 3px;
}

.main .notes .col .note .beat-16 {
    border-top: 1px solid #333333;
    margin-top: 3px;
    margin-left: 3px;
    margin-right: 3px;
}

.main .notes .col .note .beat-32 {
    border-top: 1px solid #333333;
    margin-top: 3px;
    margin-left: 3px;
    margin-right: 3px;
}

.main .notes .col .note .beat-8.joint-before,
.main .notes .col .note .beat-16.joint-before,
.main .notes .col .note .beat-32.joint-before {
    margin-left: -10px;
}

.main .notes .col .note .beat-8.joint-after,
.main .notes .col .note .beat-16.joint-after,
.main .notes .col .note .beat-32.joint-after {
    margin-right: -10px;
}

.main .notes .col.edit .note.pitch-high:first-child {
    margin-top: 5px;
}

.main .notes .col.edit .note .beat-8,
.main .notes .col.edit .note .beat-16,
.main .notes .col.edit .note .beat-32 {
    margin-left: 3px;
    margin-right: 3px;
}

.main .notes .col.note-dot .note::after {
    position: absolute;
    content: '·';
    font-size: 2rem;
    left: 12px;
    top: -10px;
}

/* 按钮区域 */
.footer {
    width: 100%;
}

.footer .keys {
    display: -ms-flexbox;
    display: flex;
    width: 60%;
    min-width: 600px;
    margin: 0 auto;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    align-content: space-between;
}

.footer .key-group {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -ms-flexbox;
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.footer .key {
    background: rgba(255, 255, 255, .1);
    width: 60px;
    height: 60px;
    outline: none;
    border: 2px solid white;
    text-align: center;
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 5px 1px rgba(0, 0, 0, .3);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.footer .key .key-desc {
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    height: 100%;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    font-size: 12px;
}

.footer .key .key-desc.single-line {
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
}

.footer .key.key-scale-animation {
    -webkit-animation: scale-keyframes .05s linear 1;
    animation: scale-keyframes .05s linear 1;
}

@keyframes scale-keyframes {
    0% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}

.footer .key .key-tips {
    font-family: Avenir, Helvetica, Arial, sans-serif;
}

.footer .key .key-title {
    position: absolute;
    font-size: 12px;
    width: 100%;
    top: 33%;
    z-index: 1;
}

.footer .key .key-title.key-bass::after {
    position: absolute;
    content: '·';
    font-size: 1.5rem;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    line-height: 0;
}

.footer .key .key-title.key-high {
    top: 38%;
}

.footer .key .key-high::before {
    position: absolute;
    content: '·';
    font-size: 1.5rem;
    left: 0;
    top: -3px;
    width: 100%;
    height: 1px;
    line-height: 0;
}

.footer .key .key-rhombus-circle {
    width: 50%;
    height: 50%;
    border: 1px solid orange;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    -webkit-box-shadow: 0 0 .7rem orange inset, 0 0 .7rem orange;
    box-shadow: inset 0 0 .7rem orange, 0 0 .7rem orange;
}

.footer .key .key-rhombus-circle::before {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid orange;
    display: block;
    content: '';
    border-radius: 50%;
    box-sizing: border-box;
}

.footer .key .key-rhombus {
    width: 45%;
    height: 45%;
    border: 1px solid orange;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    -webkit-box-shadow: 0 0 .7rem orange inset, 0 0 .7rem orange;
    box-shadow: inset 0 0 .7rem orange, 0 0 .7rem orange;
}

.footer .key .key-circle {
    width: 55%;
    height: 55%;
    border: 1px solid orange;
    border-radius: 50%;
    margin: auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    -webkit-box-shadow: 0 0 .7rem orange inset, 0 0 .7rem orange;
    box-shadow: inset 0 0 .7rem orange, 0 0 .7rem orange;
}

.footer .key .key-rotate-animation {
    -webkit-animation: rotate-keyframes .375s linear 1;
    animation: rotate-keyframes .375s linear 1;
}

.footer .key .key-rotate-animation.rotate-original {
    animation: 0s ease 0s 1 normal none running none;
}

.footer .key .key-rotate-animation.rotate-around {
    animation: 0.375s linear 0s 1 normal none running rotate-keyframes;
}


@keyframes rotate-keyframes {
    0% {
        -webkit-transform: rotateY(0deg) rotate(45deg)
    }

    25% {
        -webkit-transform: rotateY(90deg) rotate(45deg)
    }

    50% {
        -webkit-transform: rotateY(180deg) rotate(45deg)
    }

    75% {
        -webkit-transform: rotateY(270deg) rotate(45deg)
    }

    to {
        -webkit-transform: rotateY(1turn) rotate(45deg)
    }
}

.note-textarea {
    margin: auto;
    position: fixed;
    top: -200px;
    left: 0;
    right: 0;
    width: 90%;
    height: 50%;
    display: none;
    resize: vertical;
    z-index: 1111;
}

/* 侧边栏 */
.aside {
    position: fixed;
    top: 20px;
    z-index: 9999;
    right: 20px;
    text-align: right;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.aside li {
    padding: 5px 10px;
    cursor: pointer;
}